package com.itheima.demo02;

import java.util.HashSet;

public class MainClass03 {

    public static void main(String[] args) {
        HashSet<Student> hs = new HashSet<>();

        Student stu1 = new Student("张三", 78,59,80);
        Student stu2 = new Student("李四", 68,69,60);
        Student stu3 = new Student("王五", 58,89,90);
        Student stu4 = new Student("赵六", 82,93,60);

        hs.add(stu1);
        hs.add(stu2);
        hs.add(stu3);
        hs.add(stu4);

        for (Student student : hs) {
            System.out.println(student.toString());
        }
    }
}
